﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using OplugFramework.Portal;
using System;

namespace OplugFramework.Portal.Dto
{
    [AutoMapTo(typeof(Attachment))]
    public class UpdateAttachmentDto : EntityDto<Guid>
    {
        public string FileName { get; set; }
        public byte[] FileData { get; set; }
        public string FileExtension { get; set; }
        /// <summary>
        /// 文件大小
        /// </summary>
        public decimal FileSize { get; set; }
        /// <summary>
        /// 对象名
        /// </summary>
        public string ObjectName { get; set; }
        /// <summary>
        /// 对象ID
        /// </summary>
        public string ObjectId { get; set; }
    }
}
